/****************************************************************************************************
* 版权所有： Copyright (c) 2015-2022 鑫光家纺. All rights reserved.
* 作    者： 半   饱
* 创建日期： 2022/8/8
* 界面功能： <#界面功能#>
****************************************************************************************************/
#import "NSObject+BBAlertCategories.h"
#import "BBAlertConfiguration.h"

@interface BBAlertConfiguration ()

@end

@implementation BBAlertConfiguration

+  (instancetype)defaultAlertViewConfiguration {
    BBAlertConfiguration *alertConfiguration = [[self alloc] init];
//    alertConfiguration.alertViewBackgroundImage = nil;
    alertConfiguration.alertViewBackgroundColor = [UIColor whiteColor];
    alertConfiguration.cornerRadius = 8.f;
    alertConfiguration.alertViewLeftSpace = 50;
    alertConfiguration.alertViewRightSpace = 50;
//    alertConfiguration.titleBackgroundImage = nil;
    alertConfiguration.titleBackgroundColor = [UIColor whiteColor];
    alertConfiguration.messageBackgroundColor = [UIColor whiteColor];
    alertConfiguration.titleFont = [UIFont boldSystemFontOfSize:18.f];
    alertConfiguration.titleColor = [UIColor colorWithHex:0x222222];
    alertConfiguration.titleTextAlignment = BBAlertTextAlignmentCenter;
    alertConfiguration.messageFont = [UIFont systemFontOfSize:16.f];
    alertConfiguration.messageColor = [UIColor colorWithHex:0x222222];
    alertConfiguration.messageLineSpace = 8.f;
    alertConfiguration.messageTextAlignment = BBAlertTextAlignmentCenter;
    alertConfiguration.messageLineCount = NSIntegerMax;
    alertConfiguration.acrossColor = [UIColor colorWithHex:0xeeeeee];
    alertConfiguration.acrossHeight = 0.5f;
    alertConfiguration.acrossHidden = NO;
    alertConfiguration.verticalColor = [UIColor colorWithHex:0xeeeeee];
    alertConfiguration.verticalWidth = 0.5f;
    alertConfiguration.verticalHidden = NO;
    alertConfiguration.actionHeight = 51.f;
    alertConfiguration.typeCancelColor = [UIColor colorWithHex:0x999999];
    alertConfiguration.typeCancelFont = [UIFont boldSystemFontOfSize:16.f];
    alertConfiguration.typeCancelBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeCancelBackgroundImage = nil;
    alertConfiguration.typeDefaultColor = [UIColor colorWithHex:0x333333];
    alertConfiguration.typeDefaultFont = [UIFont boldSystemFontOfSize:16];
    alertConfiguration.typeDefaultBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeDefaultBackgroundImage = nil;
    alertConfiguration.typeCustomColor = [UIColor colorWithHex:0x333333];
    alertConfiguration.typeCustomFont = [UIFont boldSystemFontOfSize:16];
    alertConfiguration.typeCustomBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeCustomBackgroundImage = nil;
    alertConfiguration.actionImageSize = CGSizeMake(24.f, 24.f);
    alertConfiguration.actionCornerRadius = 0.f;
    return alertConfiguration;
}

+  (instancetype)defaultAlertSheetConfiguration {
    BBAlertConfiguration *alertConfiguration = [[self alloc] init];
//    alertConfiguration.alertViewBackgroundImage = nil;
    alertConfiguration.alertViewBackgroundColor = [UIColor whiteColor];
    alertConfiguration.cornerRadius = 8.f;
    alertConfiguration.alertViewLeftSpace = 0;
    alertConfiguration.alertViewRightSpace = 0;
    alertConfiguration.titleBackgroundColor = [UIColor whiteColor];
    alertConfiguration.messageBackgroundColor = [UIColor whiteColor];
    alertConfiguration.titleFont = [UIFont boldSystemFontOfSize:14.f];
    alertConfiguration.titleColor = [UIColor colorWithHex:0x222222];
    alertConfiguration.titleTextAlignment = BBAlertTextAlignmentCenter;
    alertConfiguration.messageFont = [UIFont systemFontOfSize:14.f];
    alertConfiguration.messageColor = [UIColor colorWithHex:0x222222];
    alertConfiguration.messageLineSpace = 8.f;
    alertConfiguration.messageTextAlignment = BBAlertTextAlignmentCenter;
    alertConfiguration.messageLineCount = NSIntegerMax;
    alertConfiguration.acrossColor = [UIColor colorWithHex:0xeeeeee];
    alertConfiguration.acrossHeight = 10.f;
    alertConfiguration.acrossHidden = NO;
    alertConfiguration.verticalColor = [UIColor colorWithHex:0xeeeeee];
    alertConfiguration.verticalWidth = 0.5f;
    alertConfiguration.verticalHidden = NO;
    alertConfiguration.actionHeight = 51.f;
    alertConfiguration.typeCancelColor = [UIColor colorWithHex:0x999999];
    alertConfiguration.typeCancelFont = [UIFont boldSystemFontOfSize:16.f];
    alertConfiguration.typeCancelBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeCancelBackgroundImage = nil;
    alertConfiguration.typeDefaultColor = [UIColor colorWithHex:0x333333];
    alertConfiguration.typeDefaultFont = [UIFont boldSystemFontOfSize:16];
    alertConfiguration.typeDefaultBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeDefaultBackgroundImage = nil;
    alertConfiguration.typeCustomColor = [UIColor colorWithHex:0x333333];
    alertConfiguration.typeCustomFont = [UIFont boldSystemFontOfSize:16];
    alertConfiguration.typeCustomBackgroundColor = [UIColor clearColor];
//    alertConfiguration.typeCustomBackgroundImage = nil;
    alertConfiguration.actionImageSize = CGSizeMake(24.f, 24.f);
    alertConfiguration.actionCornerRadius = 0.f;
    return alertConfiguration;
}

@end
